home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
pbaseiv.zip
/
P4WPR005.TIP
< prev
next >
Wrap
Text File
|
1991-12-16
|
2KB
|
46 lines
I'm not the world's greatest typist, and the <Shift> key
gives me a lot of trouble. Deleting a lowercase character
and replacing it with an uppercase one, or vice versa, may
seem like a simple process, but if you do it on a regular
basis, cutting the two-keystroke job in half is worthwhile.
For that reason, I created two WordPerfect macros, ALTU.WPM
[see below] and ALTL.WPM, that give me one-keystroke case
changes.
I also wanted these macros to be able to change the case of
an entire block of text with the same keystroke. I included
a test for block mode [the {IF}{STATE} in the listing
below]. When I press <Alt>-U in normal editing mode,
ALTU.WPM capitalizes the letter at the cursor, but if I mark
a block of text and then press <Alt>-U, the macro
capitalizes every letter in the block. ALTL.WPM does the
same thing but forces letters to lowercase.
Stephanie Wong
Salem, Oregon
Editor's note: The two macro files ALTU.WPM and ALTL.WPM are
included on your PowerBase *.* Volume IV diskette in the
P4WPM directory.
With one keystroke, this WordPerfect macro capitalizes a
character or a whole block of text. Changing the final "U"
to an "L" converts the character or block to lowercase.
{DISPLAY OFF}
{IF}{STATE}&128~ {;}If·a·block·is·marked~
{GO}end~ {;}skip·the·next·two·lines~
{END IF}
{Block}{Right} {;}Block·single·character~
{LABEL}end~
{Switch}U {;}Convert·block·to·uppercase~
Title: Making a Case for WordPerfect
Category: DOS
Issue date: Jun 1991
Editor: Karl Koessel
Supplementary files: P4WPM\ALTU.WPM, P4WPM\ALTL.WPM